package com.lanren.familybookapp.ui.home.interfaces;

import com.lanren.common.base.IView;
import com.lanren.familybookapp.ui.home.bean.BookListBean;
import com.lanren.familybookapp.ui.me.bean.BookInfoBean;

import java.util.List;

/**
 * @ClassName IHomeModel
 * @Description TODO
 * @Author chongheng.wang
 * @Date 2019/10/5 16:57
 * @Version 1.0
 */
public interface IHomeModel {
    interface IHomeView extends IView {
        void onSuccess();

        void onSuccess(List<BookListBean> bookListBeans);

        void onGetBookInfoSuccess(List<BookInfoBean> bookInfoBeans);
    }

    interface HomeModel {
        void onError(int code, String msg);

        void onSuccess(List<BookListBean> bookListBeans);
    }

    interface GetBookInfoModel {
        void onError(int code, String msg);

        void onSuccess(List<BookInfoBean> bookInfoBeans);
    }

    interface MainUserInfoModel {
        void onError(int code, String data);

        void onSuccess();
    }
}
